Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable ruff's pylint rules (PL) and remove pylint #2815

Merged
merged 11 commits into from
Nov 21, 2023
Merged

Conversation

seisman
Copy link
Member

@seisman seisman commented Nov 17, 2023

Description of proposed changes

This PR enables ruff's pylint rules (PL) and everything look good to me. So fully remove pylint from the project.

Address #2741 (comment)

Reference: https://docs.astral.sh/ruff/faq/#how-does-ruffs-linter-compare-to-pylint

@seisman seisman added the maintenance Boring but important stuff for the core devs label Nov 17, 2023
@seisman seisman added this to the 0.11.0 milestone Nov 17, 2023
@seisman seisman requested a review from a team November 17, 2023 06:21
@seisman seisman added the needs review This PR has higher priority and needs review. label Nov 17, 2023
@seisman seisman added final review call This PR requires final review and approval from a second reviewer and removed needs review This PR has higher priority and needs review. labels Nov 20, 2023
@@ -204,7 +204,7 @@ def convention_params(convention):
t="transparency",
)
@kwargs_to_strings(R="sequence", c="sequence_comma", p="sequence")
def meca(
def meca( # noqa: PLR0912, PLR0913, PLR0915
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, doesn't look like ruff supports human-friendly rule names yet (e.g. disable=too-many-arguments,too-many-locals,too-many-branches) - astral-sh/ruff#1773

doc/contributing.md Outdated Show resolved Hide resolved
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
@seisman seisman merged commit 1ef9fb4 into main Nov 21, 2023
16 checks passed
@seisman seisman deleted the ruff-vs-pylint branch November 21, 2023 06:17
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants